package com.fan.controller;

import org.redisson.api.RedissonClient;
import org.redisson.client.RedisClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    RedissonClient redissonClient;

    @GetMapping("/queryRedisKeys")
    public String queryRedisKeys() {
        return redissonClient.getKeys().count() + "---";
    }
}
